package org.example.controller;

import org.example.model.User;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2024-03-13
 * Time：23:04
 */
@Component
public class GetUserBean_cp {
    @Bean(value = "user_cp")
    User user() {
        User user = new User();
        user.setUserId(1);
        user.setUserName("GetUserBean_cp类：zhangsan");
        user.setAge(19);
        return user;
    }
}
